<?php
// +----------------------------------------------------------------------
// | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
// +----------------------------------------------------------------------
// | File name: VerifyRequest.php
// +----------------------------------------------------------------------
// | Author: liuju
// +----------------------------------------------------------------------
// | Description: 绑定、换绑银行卡中验证用户信息
// +----------------------------------------------------------------------
// | Others: 其他内容的说明
// +----------------------------------------------------------------------
// | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
// +----------------------------------------------------------------------
// | 1.Date: 2019-01-02 Author: liuju Modification: 创建
// +----------------------------------------------------------------------

namespace App\Http\Requests\Frontend\V10\BankCard;


use Illuminate\Foundation\Http\FormRequest;

class VerifyRequest extends FormRequest
{


    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'bank_card_num' => 'required',
            'bank_name' => 'required',
            'phone_num' => 'required',
            'real_name' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'bank_name.required' => '缺少银行卡所属银行名称',
            'bank_card_num.required' => '缺少银行卡号码',
            'phone_num.required' => '缺少银行预留手机号',
            'real_nam.required' => '缺少姓名信息',
        ];
    }

}